<template>
    <div class="my_input">
       <input :type="inType" :placeholder="placeholder" :value="modelValue" @input="$emit('update:modelValue',$event.target.value)" @blur="$emit('blur')">
       <slot></slot>
    </div>
</template>
<script>
export default {
  props:{
    modelValue: [String,Number],
    placeholder: String,
    inType:{
      type: String,
      default: 'text'
    }
  }
}
</script>
<style lang="scss" scoped>
.my_input{
  height: 50px;
  border-radius: 5px;
  padding: 0 10px;
  box-sizing: border-box;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  margin-top: 20px;
  border: 1px solid transparent;
  input{
    border: none;
    background: transparent;
    font-size: 14px;
    flex: 1;
  }
}
</style>


